package rwt.controlpanel;

/**
 * An event that indicates that the server's running state has changed.
 */
public final class ServerStateChangedEvent
{
	/**
	 * An enum with the two possible running states of the server: running and stopped.
	 */
	public enum ServerState
	{
		RUNNING, STOPPED
	}

	private ServerState state;

	/**
	 * Constructs a new ServerStateChangedEvent with the indicated state.
	 */
	public ServerStateChangedEvent(ServerState state)
	{
		this.state = state;
	}
	
	/**
	 * Returns the current running state of the server.
	 */
	public ServerState getState()
	{
		return state;
	}
}
